package com.qf.lanzhou.blog.api.service.impl.login;
import com.qf.lanzhou.blog.api.dao.AuditDao;
import com.qf.lanzhou.blog.api.dao.Impl.login.AuditDaoImpl;
import com.qf.lanzhou.blog.api.service.InitPasswordSuccessAuditService;

/**
 * @author LEON-HE
 */
public class InitPasswordSuccessAuditServiceImpl implements InitPasswordSuccessAuditService {
private AuditDao auditDao = new AuditDaoImpl();
    @Override
    public void processAudit(Long auditId) {
            Long userId = auditDao.selectUserIdByAuditId(auditId);
            if (auditDao.updateInitPasswordAudit(auditId,userId)){
                return;
            }else {
                throw new RuntimeException("系统繁忙，删除失败");
            }
    }
}
